package com.gxa.common;

import org.springframework.stereotype.Component;

/**
 * 统一返回给view层实体类111
 */
@Component
public class R<T> {
    private Integer code; //状态码
    private String msg; //消息1
    private T data; //返回数据
    private int count;//查询数据的总条数

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    private String token;//令牌

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
